/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 我要报事 POST /record/open/userIssue/addIssue */
export async function recordOpenUserIssueAddIssueUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueAddBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/record/open/userIssue/addIssue', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 报事记录 POST /record/open/userIssue/getIssueSelf */
export async function recordOpenUserIssueGetIssueSelfUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordOpenUserIssueGetIssueSelf;
  options?: { [key: string]: unknown };
}) {
  return request<API.RRecordUserIssueVo>(
    '/record/open/userIssue/getIssueSelf',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 报事记录评价 POST /record/open/userIssue/issueReply */
export async function recordOpenUserIssueIssueReplyUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordOpenUserIssueIssueReply;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/record/open/userIssue/issueReply', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** list查询 POST /record/open/userIssue/listOpenData */
export async function recordOpenUserIssueListOpenDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RListRecordIssueTypeVo>(
    '/record/open/userIssue/listOpenData',
    {
      method: 'POST',
      ...(options || {}),
    }
  );
}

/** page报事记录 POST /record/open/userIssue/pageIssueSelf */
export async function recordOpenUserIssuePageIssueSelfUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordOpenUserIssuePageIssueSelf;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoRecordUserIssueVo>(
    '/record/open/userIssue/pageIssueSelf',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 报事记录统计 POST /record/open/userIssue/statisticsData */
export async function recordOpenUserIssueStatisticsDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RRecordUserIssueStatisticsVo>(
    '/record/open/userIssue/statisticsData',
    {
      method: 'POST',
      ...(options || {}),
    }
  );
}
